var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/act/guild_popularity', function(req, res, next) {
  // res.setHeader('Access-Control-Allow-Origin', '*');
  //res.send('../ajax.html');
  res.jsonp({
		code: 0,
		data: {
		    user_role: 1,  
		    is_signup:1,    
		    user_ID:1000, 
		    guild_ID:3000, 
		    guild_name:"青龙帮", 
		    guild_popularity_value:{ 
		      today:100, 
		      total:1200  
		    },
		    guild_activity_value:{ 
		      today:600, 
		      total:2000 
		    },
		    create_time:1456635024,
		    signup_time:1456388884
		},
	    msg: "OK"
   });  
});

router.get('/act/guild_popularity_signup', function(req, res, next) {
  res.setHeader('Access-Control-Allow-Origin', '*');
  //res.send('../ajax.html');
  res.jsonp({
		code: 0,
		data: {
		    user_role: 1,  
		    is_signup:1,    
		    user_ID:1000, 
		    guild_ID:3000, 
		    guild_name:"青龙帮", 
		    guild_popularity_value:{ 
		      today:100, 
		      total:1200  
		    },
		    guild_activity_value:{ 
		      today:600, 
		      total:2000 
		    },
		    create_time:1456635024,
		    signup_time:1456388884
	    },
	    msg: "OK"
   });  

});

router.get('/act/uploadtoken', function(req, res, next) {
  res.setHeader('Access-Control-Allow-Origin', '*');
  //res.send('../ajax.html');
  res.jsonp({
		code: 0,
		data: {
		   domain:"7xi4o8.com1.z0.glb.clouddn.com",
		   uptoken:"um6IEH7mtwnwkGpjImD08JdxlvViuELhI4mFfoeL:79ApUIePTtKIdVGDHJ9D9BfBnhE=:eyJzY29wZSI6ImphdmFkZW1vIiwiZGVhZGxpbmUiOjE0NTk4ODMyMzV9Cg=="
	    },
	    msg: "OK"
   });  

});

router.post('/act/uploadtoken/post', function(req, res, next) {
   res.setHeader('Access-Control-Allow-Origin', '*');
   res.setHeader('X-Content-Type-Options','nosniff');
   res.json({
		code: 0,
		data: {
		   domain:"7xi4o8.com1.z0.glb.clouddn.com",
		   uptoken:"MY_ACCESS_KEY:yN9WtB0lQheegAwva64yBuH3ZgU="
	    },
	    msg: "OK"
   });  

});


router.get('/act/preorderlotto/lottery_profile',function(req, res, next){
	res.setHeader('Access-Control-Allow-Origin', '*');
    res.setHeader('X-Content-Type-Options','nosniff');
    // res.send('你妹的');
	res.jsonp({
		code: 0,
		data: {
		    lottery_item_list: [
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/588.png",
		            describe_text: "588礼包",
		            id: 2
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/2000.png",
		            describe_text: "2000红钻",
		            id: 4
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/medal.png",
		            describe_text: "TT勋章",
		            id: 5
		        },
		         {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/288.png",
		            describe_text: "288礼包",
		            id: 11
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/888.png",
		            describe_text: "888礼包",
		            id: 3
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/recharge.png",
		            describe_text: "充值卡",
		            id: 6
		        },

		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/288.png",
		            describe_text: "288礼包",
		            id: 1
		        },{
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/medal.png",
		            describe_text: "TT勋章",
		            id: 7
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/888.png",
		            describe_text: "888礼包",
		            id: 8
		        },
		        
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/recharge.png",
		            describe_text: "充值卡",
		            id: 9
		        },
		       
		    ],
		    lottery_record_list: [
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "1906708"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "1906708"
		        },
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "21472552"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "21472552"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "31639259"
		        },
		        {
		            describe_text: "2000红钻",
		            id: 4,
		            ttid: "3442334"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "3442334"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "3478531"
		        },
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "3205580"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "3205580"
		        },
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "29084792"
		        },
		        {
		            describe_text: "288礼包",
		            id: 11,
		            ttid: "29084792"
		        },
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "2893616"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "2893616"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "3465595"
		        },
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "3185189"
		        },
		        {
		            describe_text: "288礼包",
		            id: 11,
		            ttid: "3185189"
		        },
		         {
		            describe_text: "充值卡",
		            id: 9,
		            ttid: "29084792"
		        },
		        {
		            describe_text: "2000红钻",
		            id: 4,
		            ttid: "2421693"
		        },
		        {
		            describe_text: "2000红钻",
		            id: 4,
		            ttid: "29612700"
		        },
		        {
		            describe_text: "288礼包",
		            id: 1,
		            ttid: "29612700"
		        }
		    ],
		    mine_record_list: [
		        
		    ],
		    profile: {
		        banner: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/banner2.jpg",
		        bg_color: "#060219",
		        circle_id: 756,
		        follow_btn: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/btn_follow.png",
		        game_icon: "http://7oxgb1.com2.z0.glb.qiniucdn.com/o_1amvvep5aqtadrkj7pi6f57517.png?imageView2/1/w/120/h/120&imageView2/1/w/144/h/144/format/jpg/q/90",
		        game_name: "雪鹰领主",
		        is_follow: 1,
		        is_share: 0,
		        lottery_counts: 1,
		        rules_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/rules.png"
		    }
		},
		msg: "ok"
	})
})

router.get('/act/preorderlotto/lottery',function(req, res, next){
	res.setHeader('Access-Control-Allow-Origin', '*');
    res.setHeader('X-Content-Type-Options','nosniff');
    // res.send('你妹的');
	res.jsonp({
		code: 0,
		data: {
		    lottery_item_list: [
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/588.png",
		            describe_text: "588礼包",
		            id: 2
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/2000.png",
		            describe_text: "2000红钻",
		            id: 4
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/medal.png",
		            describe_text: "TT勋章",
		            id: 5
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/888.png",
		            describe_text: "888礼包",
		            id: 3
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/recharge.png",
		            describe_text: "充值卡",
		            id: 6
		        },
		        {
		            describe_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/288.png",
		            describe_text: "288礼包",
		            id: 11
		        }
		    ],
		    lottery_record_list: [
		        {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "29084792"
		        },
		        {
		            describe_text: "充值卡",
		            id: 9,
		            ttid: "29084792"
		        },
		         {
		            describe_text: "288礼包",
		            id: 11,
		            ttid: "29084792"
		        }
		    ],
		    mine_record_list: [
		         {
		            describe_text: "588礼包",
		            id: 2,
		            ttid: "29084792"
		        },
		        {
		            describe_text: "充值卡",
		            id: 9,
		            ttid: "29084792"
		        },
		         {
		            describe_text: "288礼包",
		            id: 11,
		            ttid: "29084792"
		        }
		    ],
		    profile: {
		        banner: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/banner2.jpg",
		        bg_color: "#060219",
		        circle_id: 756,
		        follow_btn: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/btn_follow.png",
		        game_icon: "http://7oxgb1.com2.z0.glb.qiniucdn.com/o_1amvvep5aqtadrkj7pi6f57517.png?imageView2/1/w/120/h/120&imageView2/1/w/144/h/144/format/jpg/q/90",
		        game_name: "雪鹰领主",
		        is_follow: 1,
		        is_share: 0,
		        lottery_counts: 1,
		        rules_pic: "http://7oxgb1.com1.z0.glb.clouddn.com/act/lotto_295673/rules.png"
		    }
		},
		msg: "ok"
	})
})

module.exports = router;
